package org.krivtsun.scanlab.examples;

/**
 * Created by IntelliJ IDEA.
 * User: AndreyK
 * Date: 29.10.2006
 * Time: 22:25:08
 * To change this template use File | Settings | File Templates.
 */
public abstract class AbstractTest {
public int getNum() {
return 45;
}
public abstract class Bar {
public int getNum() {
return 38;
}
}
public static void main(String[] args) {
AbstractTest t = new AbstractTest() {
public int getNum() {
return 22;
}
};
AbstractTest.Bar f = t.new Bar() {
public int getNum() {
return 57;
}
};
System.out.println(f.getNum() + " " + t.getNum());
} }
